#include <stdio.h>


int main(){
  FILE *file_ptr;
  file_ptr = fopen("program.s","a+");
  if(!file_ptr){
        exit(2);
  }
  
  int i = 0;
  for(i = 0; i < 5; i++)
    fprintf(file_ptr,"	and r%d,r%d\n",i,i+1);
  
  
  
  return 0;
}
  
  
